<?php

namespace App\Providers;

use Illuminate\Support\Facades\Event;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'App\Events\Event' => [
            'App\Listeners\EventListener',
        ],
        'App\Events\WithDrawal' => [
            'App\Listeners\WithDrawalListener',
        ],
        /*'Illuminate\Auth\Events\Registered' => [
            'App\Listeners\LogRegisteredUser',
        ],

        'Illuminate\Auth\Events\Attempting' => [
            'App\Listeners\LogAuthenticationAttempt',
        ],

        'Illuminate\Auth\Events\Authenticated' => [
            'App\Listeners\LogAuthenticated',
        ],*/

        'Illuminate\Auth\Events\Login' => [
            'App\Listeners\UserLogin',
        ],

        /*'Illuminate\Auth\Events\Failed' => [
            'App\Listeners\LogFailedLogin',
        ],

        'Illuminate\Auth\Events\Logout' => [
            'App\Listeners\LogSuccessfulLogout',
        ],

        'Illuminate\Auth\Events\Lockout' => [
            'App\Listeners\LogLockout',
        ],*/
    ];
    //内部多订阅
    protected $subscribe = [
    ];
    /**
     * Register any events for your application.
     *注册应用程序中的任何其他事件
     * @return void
     */
    public function boot()
    {
        parent::boot();
        //
        Event::listen('event.*', function ($eventName, array $data) {
            //
        });
    }
}
